<?php 

class Product extends CI_Model {


	function getProduct()
	{
		$query = $this->db->get('product');
		
		$ret = $query->result();
		
		return $ret;
	}
	
	function getProductQuantity()
	{
		$query = $this->db->get('product');
		
		$ret = $query->result();
		
		return $ret;
	}
	
	//get warnings list
	function getWarnings()
	{
		$qr = $this->db->query('SELECT * FROM product WHERE quantity < 10 ');
			
		return $qr->result();
	}


}

?>